class Tiles
  def Tiles.[](name)
    @@tiles = Hash.new unless defined?(@@tiles)
    if @@tiles[name]
      @@tiles[name]
    else
      @@tiles[name] = Gosu::Image.load_tiles($screen, name, 32,32, true)
    end
  end
end